package com.devplatform.pojo.points;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @TableName order
 */
@TableName(value = "`order`")
@Data
public class Order {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer orderId;

    /**
     *
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     *
     */
    private Integer goodsId;

    /**
     *
     */
    private Integer pointsUsed;

    /**
     *
     */
    private Integer orderStatus;

    /**
     *
     */
    private LocalDateTime orderTime;
}